import { Injectable } from '@angular/core';
import { HttpClient } from '../../../providers/httpClient';
import { Config } from '../../../providers/config';

@Injectable()
export class InfoListService {
	constructor(
		public httpClient: HttpClient,
		public config: Config
	) { }
	getListData(page, type) {
		let postBody = {
			"module": "OAServer",
			"method": "selectStructByCondition",
			"params": {
				"page": page,
				"type": type,
				"pageSize": this.config.pageSize
			}
		}
		return this.httpClient.post(postBody, {
			isShowLoading: true
		});
	}
}